package com.techstar.api.pojo.onlinecar;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.joda.time.DateTime;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.techstar.common.jackson.DateTimeDeserializer;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 
 * @author EinIce
 * @description 日均运营
 * @date 2021年8月9日
 */

@Getter
@Setter
@Entity
@ToString
@Table(name = "onlinecar_daily_business")
@org.hibernate.annotations.Table(appliesTo = "onlinecar_daily_business",comment="pbtp-5-日均运营")
public class OnlinecarDailyBusiness {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	@Column(columnDefinition="varchar(100) COMMENT '日均营运里程'")
	private String avgBusinessMileage;
	@Column(columnDefinition="varchar(100) COMMENT '日均载客里程'")
	private String avgLoadMileage;
	@Column(columnDefinition="varchar(100) COMMENT '载客里程占比'")
	private String LoadMileageRatio;
	@Column(columnDefinition="varchar(100) COMMENT '日均空驶里程'")
	private String avgVacantMileage;
	@Column(columnDefinition="varchar(100) COMMENT '空驶里程占比'")
	private String vacantMileageRatio;
	@Column(columnDefinition="varchar(100) COMMENT '日均单车订单数'")
	private String avgBookingPerCar;
	@Column(columnDefinition="varchar(100) COMMENT '日均单车营收'")
	private String avgTradingPerCar;
	@Column(columnDefinition="datetime(0) COMMENT '业务统计时间'")
	@JsonDeserialize(using = DateTimeDeserializer.class)
	private DateTime createTime;
}

